package com.example.novelweb.utils;

import com.example.novelweb.model.vo.UserVO;

public class UserHolder {
  private static final ThreadLocal<UserVO> threadlocal = new ThreadLocal<>();
  public static void saveUser(UserVO user) {
    threadlocal.set(user);
  }
  public static UserVO getUser() {
    return threadlocal.get();
  }
  public static void removeUser() {
    threadlocal.remove();
  }

}
